/*
 * @Copyright: Citylife 2021
 * @Author: WangXinnong
 * @Date: 2020-12-18 16:23:32
 * @Description: 
 */
import 'dart:developer';

class Config {
  static const DEBUG = true;

  static String appKey = "cnki5q19kg9ou";
  static String baseUrl = "http://dev-shop.citylife.com/";

  static set env(String env) {
    // baseUrl = "https://rtc.cocophp.com/";
    baseUrl = "https://192.168.50.116:4443/";

    // if (env == "dev") {
    //   baseUrl = 'http://$env-shop.citylife.com/';
    // } else {
    //   baseUrl = 'https://$env-shop.citylife.com/';
    // }
    // switch (env) {
    //   case "dev":
    //     appKey = "cnki5q19kg9ou";
    //     break;
    //   case "uat":
    //     appKey = "uxs4jymrs7rb7";
    //     break;
    //   case "sit":
    //     appKey = "9noxtudfo2fik";
    //     break;
    //   case "pre":
    //     appKey = "oj4nmbr7497fy";
    //     break;
    //   case "release":
    //     appKey = "cnki5q19kg9ou";
    //     break;
    // }

    log('环境设置: $env\nbaseUrl: $baseUrl\nimAppKey: $appKey', name: 'Config');
  }
}
